package com.fz.us.oa.core.dao.com;

import com.fz.us.admin.company.dao.BaseFlowDao;
import com.fz.us.admin.company.entity.*;
import com.fz.us.oa.core.entity.com.PersonnelInfo;

import java.util.List;

/**
 * Created by ZhuChunXiao on 2017/7/14.
 */
public interface PersonnelInfoDao extends BaseFlowDao<PersonnelInfo, String> {
    /**
     * 根据部门和岗位获取职权
     */
    Power getPowerByDepartmentAndPost(Department department,Post post);
    /**
     * 根据获取部门获取当前部门下的职权
     */
    public List<Power> getPowerByDepartment(Department department);
    /**
     * 根据用户和职权获得职责
     */
    Duty getDutyByPowerAndUser(Power power, User user);
}
